package com.mz.mattress.admin.api.admin;

import com.mz.mattress.admin.service.HomeService;
import com.mz.mattress.api.common.Constants;
import com.mz.mattress.api.common.Result;
import com.mz.mattress.api.entity.Home;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping(Constants.ADMIN_PATH + "home")
public class HomeController {

    @Autowired
    private HomeService homeService;

    @GetMapping(value = "/info")
    public Result<Home> info() {
        return homeService.info();
    }

}
